package com.legsem.jrhosync.ws.rs;

import com.legsem.jhosync.Constants;
import com.legsem.jhosync.dto.ClientLogin;

public class LoginResourceITCase extends AbstractResourceITCase {

    public void testAdminUserShouldLogin() throws Exception {
        ClientLogin clientLogin = new ClientLogin();
        clientLogin.setLogin(Constants.ADMIN_LOGIN);
        clientLogin.setPassword("");
        byte[] response = postJSONRequest("/login", clientLogin);
        assertEquals("", new String(response, "UTF-8"));
    }
}
